<center>
    <div class="formbox" style="width: 600px;">
        <div class="formbox-title"><%= __('select_target_cat') %></div>
        <div class="formbox-content" style="padding: 10px;">
            <center>
                    <form name="movecat" method="post" action="?in=category&act=move" style="display: inline">
                        <input name="_csrf" type="hidden" value="<%- ctx.csrf %>" />
                <table cellpadding="2" cellspacing="1">
                        <tr>
                            <td class="formbox-rowheader"><%= __('from_cat') %>:</td>
                            <td class="formbox-content">
                                <% for(var i = 0;i < arrSelected.length;i++){
                                        with(arrSelected[i]){ %>
                                    [<%= helper.HTMLEncodeLite(theCache.getCategoryByID(arrSelected[i]).name) %>]
                                <% }
                                } %>
                            </td>
                        </tr>
                        <tr>
                            <td class="formbox-rowheader"><%= __('to_cat') %>:</td>
                            <td class="formbox-content">
                                <select name="target">
                                    <% for(var i = 0;i < theCache.categories.length;i++){
                                            with(theCache.categories[i]){ %>
                                        <option value="<%= id %>"><%= helper.HTMLEncodeLite(name) %> [<%= articleCount %>]
                                        </option>
                                    <% }
                                    } %>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="formbox-content">
                                <br/>
                                <input type="hidden" name="selected" value="<%= arrSelected.join(",") %>"/>
                                <input type="submit" name="submit" value=" <%= __('move') %> " class="button"/>
                                <input type="button" name="back" value=" <%= __('cancel') %> "
                                       onClick="window.history.back();" class="button"/>
                            </td>
                        </tr>
                </table>
                    </form>
            </center>
        </div>
        </tr>
    </div>
</center>
